package HLLibClasses;

import HLCode.HLClassManager;
import HLCode.HLLibClass;
import HLCode.HLObject;
import HLLib.base.HLString;
import HLLib.purchase.HLIAdWall;

public class HLClassIAdWall extends HLLibClass {
    public HLClassIAdWall(HLClassManager owner) {
        super(owner);
    }

    public HLObject NewObject() {
        return new HLIAdWall();
    }

    public void Execute(HLObject self, int index, HLObject args, HLObject resultOwnerObject, int resultIndex) {
        switch (index) {
        case 0: {
            ((HLIAdWall) self).ShowOffers();
            break;
        }
        case 1: {
            ((HLIAdWall) self).GetPoints();
            break;
        }
        case 2: {
            ((HLIAdWall) self).Exit();
            break;
        }
        case 3: {
            ((HLIAdWall) self).SetUserID((HLString)args.GetObject(0));
            break;
        }
        }
    }
}
